cc.work_global()

constant = {}

Zorder = {
    ERROR_TEXT = 1000000,
}

TAG_MOVET = 0xfffff1
TAG_FOLLOWATTACK = 0xfffff2
TAG_COOLINGTIMEATTACK = 0xfffff3
TAG_MOVETWAIT = 0xfffff4

 -- 0空闲 1已占用 2已占满  5准备入库的包裹+已占用 6准备入库+占满 （0b000 0b001 0b010 0b101 0b110）
TPACK_STATUS_EMPTY = 0
TPACK_STATUS_OCCUPY = 1
TPACK_STATUS_FULL = 2
TPACK_STATUS_EMPTY_UNSTORED = 4 --从背包拿出但未保存
TPACK_STATUS_OCCUPY_UNSTORED = 5
TPACK_STATUS_FULL_UNSTORED = 6

SEARCH_STATE_NOT_INITIALISED = 0
SEARCH_STATE_SEARCHING = 1
SEARCH_STATE_SUCCEEDED = 2
SEARCH_STATE_FAILED = 3
SEARCH_STATE_OUT_OF_MEMORY = 4

Cell_Type = {
    STORE="STORE",      --商店
    TPACK="TPACK",      --马车背包
    TPACKS="TPACKS",     --马车卖出
    RECYCLE="RECYCLE",    --商店回收
}

Item_Type={
    IT_COINS = 0,           --货币   
    IT_EQUIP = 1,           -- 装备
    IT_PROP = 2,            -- 道具
}

GOOODS_TYPE_LOCAL = 1
GOOODS_TYPE_LIVE = 2
GOOODS_TYPE_EMERGENCY = 3

function constant.get_Item_Type_by_celltype(cell_type)
    if cell_type==Cell_Type.STORE or cell_type==Cell_Type.TPACKS then
        return Item_Type.IT_PROP
    elseif cell_type==Cell_Type.TPACK or cell_type==Cell_Type.RECYCLE then
        return Item_Type.IT_PROP
    end
end

cc.disable_global()
